<?php

use Illuminate\Database\Seeder;

class AlbumlistTableSeeder extends Seeder
{
    /**
     * Run the database seeds.
     *
     * @return void
     */
    public function run()
    {
        //用户表
        //产生实例
        $faker = \Faker\Factory::create('zh_CN');
        //循环产生数据
        $data = [];

        for($i=0;$i<100;$i++){
            $data[]=[
                'photo_id' => rand(1,4),
                'created_at'	=>		date('Y-m-d H:i:s'),
            ];
        }
        \Illuminate\Support\Facades\DB::table('albumlist')->insert($data);

    }
}
